package com.lcc.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//@WebFilter(urlPatterns = "/*")
public class AbcFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("Abc 拦截到了请求...放行前逻辑");
        chain.doFilter(request,response); //放行 ↑放行前 ↓放行之后
        System.out.println("Abc 拦截到了请求...放行后逻辑");
    }
}
